package chain

import (
	"awesomeProject1/pkg/chain"
	"context"
	"github.com/simplechain-org/go-simplechain/core/types"
)

func (s *service) GetTransactionByHash(txId string) (*chain.Transaction, error) {
	return s.chainClient.GetTransactionByHash(txId)
}

func (s *service) GetTransactionReceipt(txId string) (*types.Receipt, error) {
	return s.chainClient.GetTransactionReceipt(txId)
}

func (s *service) UpdateNodeName(ctx context.Context, nodeId string, nodeName string, from string) (string, error) {
	return s.chainClient.UpdateNodeName(ctx, nodeId, nodeName, from)
}
